import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		while(input.hasNextInt()){
		StringBuilder str=new StringBuilder();
		int n=input.nextInt();
		int x=input.nextInt();
		int y=input.nextInt();
		for(int i=0;i<n;i++){
			str.append(i);
		
		}
		String result = str.substring(x,y);
		System.out.println(result);
		}
	}
}
